using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;

using Microsoft.XLANGs.BaseTypes;

namespace BTS_Utilities.MessageEnrichmentLibrary
{
    public class OrchestrationUtilities
    {
        const string _EDIFACT = "EDIFACT";
        const string _X12 = "X12";

        public static bool IsMessageEDIFACT(string messageType)
        {
            return messageType.ToUpper().Contains(_EDIFACT);
        }

        public static bool IsMessageX12(string messageType)
        {
            return messageType.ToUpper().Contains(_X12);
        }

        public static bool IsHeaderExist(XLANGMessage message, Type type)
        {
            return message.GetPropertyValue(type) != null;
        }
    }
}
